from langchain_core.prompts import ChatPromptTemplate

from utils.log_utils import NJLogger

prompt_template = ChatPromptTemplate.from_messages([
    ("system", "You are a helpful assistant"),
    ("user", "Tell me a joke about {topic}")
])

result = prompt_template.invoke({"topic": "cats"})
NJLogger.info(result)
## messages=[SystemMessage(content='You are a helpful assistant', additional_kwargs={}, response_metadata={}), HumanMessage(content='Tell me a joke about cats', additional_kwargs={}, response_metadata={})]